package Book;

/**
 * Created with IntelliJ IDEA.
 * User: wenxiwen
 * Date: 2022/4/15
 * Time: 10:33
 * Description: No Description
 */
public class BookList {
    private Book[] books= new Book[10];
    private int count;

    public BookList() {
        books[0] = new Book("三国演义","罗贯中","名著",55);
        books[1] = new Book("西游记","施耐庵","名著",58);
        books[2] = new Book("红楼梦","曹雪芹","名著",60);
        this.count = 3;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public void setBooks(int pos,Book book ) {
        books[pos] = book;
    }

    public Book getBook(int pos) {
        return books[pos];
    }
}